<template>
	<view class="wapper" v-if="type">
		<image :src="IMGLink+'/index/banner-detail'+type+'.png'" mode="widthFix"></image>
		<view class="activity_box" v-if="type == 2">
			<view class="activity_box_title">
				活动说明
			</view>
			<view class="activity_box_text">1、累计邀请1-2名直属用户成为趣拼购的付费会员,奖励每人红包88元；</view>
			<view class="activity_box_text">2、累计邀请3-5名直属用户成为趣拼购的付费会员,奖励每人红包108元；</view>
			<view class="activity_box_text">3、累计邀请6-10名直属用户成为趣拼购的付费会员,奖励每人红包128元；</view>
			<view class="activity_box_text">4、累计邀请11名及以上直属用户成为趣拼购的付费会员,奖励每人红包148元；</view>
			<view class="activity_box_text">5、奖励不可叠加领取，奖励直接发放到账户,可提现；</view>
			<view class="activity_box_text">6、活动有效期内,奖励不设封顶。</view>
			<view class="activity_box_text">7、本轮活动有效期2021-07-01~-2021-12-31,请尽量提前完成任务。</view>
			<view class="activity_box_title">
				注意事项
			</view>
			<view class="activity_box_text">1、只有邀请用户首次开通成为会员才有效，用户续费则不在活动统计范国内；
			</view>
			<view class="activity_box_text">2.只有对方是自己的直属用户邀请付费开通会员才有效,如果对方不属于你的直属用户,则不计入,本活动最终解释权归本公司所有。</view>
		</view>
		<view class="member_description" v-if="type == 1">
			<view class="member_description_title">
				会员说明
			</view>
			<view class="member_description_text">
				会员权益：
			</view>
			<view class="member_description_text_item">1享受下级用户红包20%分成,下下级用户红包的5%分成。</view>
			<view class="member_description_text_item">2现在购买会员送价值288精美礼品一份(送完为止)。</view>
			<view class="member_description_text_item">3送价值726元代金券,购买平台商品可以抵扣。</view>
			<view class="member_description_text_item">4会员可以获得更多的币,积分等虚拟权益。</view>
			<view class="member_description_text_item" style="margin-bottom: 44rpx;">5会员专区活动仅会员才可参与。</view>
			<view class="member_description_text">
				会员红包收益测算：
			</view>
			<view class="member_description_text_item">假设你一天只发展1个直属用户,平均每个直属用户给你带来1个间属用户,每个用户平均每天在平台抢到1元的红包。</view>
			<view class="member_description_text_item">那么你的收益为:</view>
			<view class="member_description_text_item">365*1*20%*365+365*1*5%*365=33306.25元</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				IMGLink: this.IMGLink,
				type: false
			}
		},
		methods: {

		},
		onLoad({
			type
		}) {
			this.type = type;
			uni.setNavigationBarTitle({
				title: type == 2 ? '邀请会员任务' : '会员红包'
			})
		}
	}
</script>

<style lang="scss">
	image {
		display: block;
		width: 100%;
	}

	.wapper {
		overflow: hidden;
		position: relative;
		font-family: PingFangSC-Regular, PingFang SC;
	}

	.activity_box {
		position: absolute;
		width: 556rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #292929;
		top: 900rpx;
		left: 50%;
		margin-left: -278rpx;
	}

	.activity_box_title {
		color: #363636;
		font-size: 36rpx;
		margin-bottom: 14rpx;
		font-weight: 500;
		text-align: center;

	}

	.activity_box_text {
		line-height: 39rpx;
		text-align: left;
	}

	.member_description {
		width: 632rpx;
		position: absolute;
		top: 664rpx;
		left: 50%;
		margin-left: -316rpx;
		font-size: 26rpx;
		font-weight: 400;
		color: #292929;
	}

	.member_description_title {
		font-size: 36rpx;
		font-weight: 500;
		color: #FFFFFF;
		text-align: center;
		margin-bottom: 56rpx;
	}

	.member_description_text {
		font-size: 28rpx;
		font-weight: 500;
		color: #363636;
		margin-bottom: 16rpx;
	}

	.member_description_text_item {
		line-height: 50rpx;
		font-size: 26rpx;
		font-weight: 400;
		color: #292929;
	}
</style>
